.class Lcom/waiqin365/lightapp/sales/p;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/app/Dialog;

.field final synthetic b:Lcom/waiqin365/lightapp/sales/n;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/sales/n;Landroid/app/Dialog;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/sales/p;->b:Lcom/waiqin365/lightapp/sales/n;

    iput-object p2, p0, Lcom/waiqin365/lightapp/sales/p;->a:Landroid/app/Dialog;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/p;->a:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    const-class v1, Lcom/waiqin365/lightapp/sales/SalesListActivity;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->a(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/p;->b:Lcom/waiqin365/lightapp/sales/n;

    iget-object v1, v1, Lcom/waiqin365/lightapp/sales/n;->a:Lcom/waiqin365/lightapp/sales/SalesInfoActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/sales/SalesInfoActivity;->h(Lcom/waiqin365/lightapp/sales/SalesInfoActivity;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/sales/SalesListActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/p;->b:Lcom/waiqin365/lightapp/sales/n;

    iget-object v1, v1, Lcom/waiqin365/lightapp/sales/n;->a:Lcom/waiqin365/lightapp/sales/SalesInfoActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/sales/SalesInfoActivity;->startActivity(Landroid/content/Intent;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/p;->b:Lcom/waiqin365/lightapp/sales/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/sales/n;->a:Lcom/waiqin365/lightapp/sales/SalesInfoActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/sales/SalesInfoActivity;->finish()V

    return-void
.end method
